package com.ymttest.business.data.socket;

import org.json.JSONException;

public interface SocketIoConnection {
	   SocketIoConnection connect();

	    void disconnect();

	    void emit(String event, String message);

	    SocketIoConnection addLinstner(String event, Listener listener);

	    boolean connected();

	    String getSocketId();

	    interface Listener {

	        void call(Object... args) throws JSONException;
	    }
}
